package com.winit.flow.model;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;

@Entity
@Table(name = "matrix_flow_legend")
@DynamicUpdate
@DynamicInsert
public class Legend {
    @Id
    @Column(name = "id")
    private String id;
    @Column(name = "title")
    private String title;   //图例名称，用来搜索显示
    @Column(name = "type")
    private String type;    // 类型  FEATURE/ONLINE_DESCRIBE/OFFLINE_DESCRIBE (功能点/线上描述/线下描述)  功能点类型的可以关联到page级别
    @Column(name = "sys")
    private String sys; //节点对应的系统  TOM/SELL (tom/卖家网站等)
    @Column(name = "relate_id")
    private String relateId;   //流程节点关联的功能点或者pageid  暂定最高只能关联到page  不能关联menu
    @Column(name = "relate_type")
    private String relateType; //关联类型  FEATURE/PAGE (功能点 or page)
    @Column(name = "bussiness_line")
    private String bussinessLine;  //所属的流程架构id
    @Column(name = "is_del")
    private String isDel;  //是否删除 0 删除 1 不删除
    @Column(name = "status")
    private String status;  //ADD/UPDATE 新建的是add，关联的功能点被修改后，标记为update

    @Transient
    private String relate_name;
    @Transient
    private String relate_path;
    @Transient
    private String bussinessLineName;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getSys() {
        return sys;
    }

    public void setSys(String sys) {
        this.sys = sys;
    }

    public String getRelateId() {
        return relateId;
    }

    public void setRelateId(String relateId) {
        this.relateId = relateId;
    }

    public String getRelateType() {
        return relateType;
    }

    public void setRelateType(String relateType) {
        this.relateType = relateType;
    }

    public String getBussinessLine() {
        return bussinessLine;
    }

    public void setBussinessLine(String bussinessLine) {
        this.bussinessLine = bussinessLine;
    }

    public String getIsDel() {
        return isDel;
    }

    public void setIsDel(String isDel) {
        this.isDel = isDel;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getRelate_name() {
        return relate_name;
    }

    public void setRelate_name(String relate_name) {
        this.relate_name = relate_name;
    }

    public String getRelate_path() {
        return relate_path;
    }

    public void setRelate_path(String relate_path) {
        this.relate_path = relate_path;
    }

    public String getBussinessLineName() {
        return bussinessLineName;
    }

    public void setBussinessLineName(String bussinessLineName) {
        this.bussinessLineName = bussinessLineName;
    }
}
